new Vue({
    el: '#cele  ',
    data: {
        all:[{
            carName:'警车1',
            checked:null,
            Driver_name:'1',
            Driver_num:'11',
            fuj_name_1:'11',
            fuj_name_2:'12'
        },
        {   carName:'警车2',
            checked:null,
            Driver_name:'2',
            Driver_num:'22',
            fuj_name:'21',
            fuj_name:'22'
        }],
        newVal:[
            {
                carName:'警车11',
                checked:null,
                Driver_name:'111',
                Driver_num:'111',
                fuj_name:'1111',
                fuj_name:'1112'
            },
            {
                carName:'警车22',
                checked:null,
                Driver_name:'222',
                Driver_num:'222',
                fuj_name:'2111',
                fuj_name:'2222'
            },
            {
                carName:'警车33',
                checked:null,
                Driver_name:'333',
                Driver_num:'333',
                fuj_name:'31111',
                fuj_name:'32222'
            }
        ],
        show_list:false,
        show_btn:false,
        indexval:'',
    },
    mounted() {

    },
    computed:{

    },
    action:{

    },
    watch:{

    },
    methods: {
        newName(index){
            this.show_list = true
            this.indexval =index
        },
        clickName(event){
            debugger
            this.show_btn = true
        },
        close(event){
            debugger
            console.log(event.target)
            this.indexval = index
            this.all[index].Driver_name = ''
            this.all[index].Driver_num= ''
        },
        li_list(li) {
            var val = this.indexval
            this.all.splice(val,1,li)
            this.show_list = false;
            this.show_btn = false
        }

    }
})
